<template>
	<view class="m-b-25">
		<uv-notice-bar :text="noticeArray" @click="handleRouteNavigateTo('/pages/subpackage/notice/list/list')"
			:customStyle="{'border-radius':'15rpx' , 'padding':'12px'}" direction="column" bgColor="#fff"
			color="#D83E35"></uv-notice-bar>
	</view>
</template>
<script setup lang="ts">
	import { timeFormat } from '@/uni_modules/uv-ui-tools/libs/function/index.js';
	import { ref } from 'vue';
	import { handleRouteNavigateTo } from '@/core/utils';

	const props = withDefaults(defineProps<{
		data : any,
	}>(), {
		data: {},
	});

	let noticeArray = ref([]);
	noticeArray.value = props.data.list.map((item : any) => `${item.title}【${timeFormat(item.createTime, 'yyyy年mm月dd日')}】`);
</script>
<style lang="scss" scoped>
</style>